const { log } = require('console');
const express = require('express')
const app = express();
const path =require('path')


app.get('/1',(request,response)=>{
    const filePath= path.resolve(__dirname,'./02.基础的get请求.html')
    response.sendFile(filePath)
})

app.listen(8000,()=>{
    console.log('服务器请求成功 请访问 http://127.0.0.1:8000');
})